<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateActivityDatesTable extends Migration
{
    /**
     * Run the migrations.
     * 活动日期
     * @return void
     */
    public function up()
    {
        Schema::create('activity_dates', function (Blueprint $table) {
            $table->id();
            $table->integer('activities_id');//活动ID
            $table->date('date');//活动时间
            $table->time('date_start');//活动开始时间
            $table->time('date_end');//活动结束时间
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('activity_dates');
    }
}
